﻿-- Author      : Johannes
-- Create Date : 1/17/2008 7:01:39 PM

-- START COMMAND AND WHISPER FUNCTION DEFINITIONS --
-- TO ADD A COMMAND TO SB_DKP, ADD ITS FUNCTION BELOW (SB_DKP.<NameOfFunc>) THEN ADD IT TO THE SB_DKP.CommandList LIST, EITHER MANUALLY, THROUGH THE INIT FUNCTION SB_DKP:CommandInit().

function SB_DKP.CmdDebugToggle(arguments) -- function to toggle debug mode.
	if (SB_DKP_DEBUG >= 1) then
		SB_DKP:Print("CmdDebugToggle: Extra arg is \"" .. arguments[2] .. "\".")
	end
	if (strlower(arguments[2]) == "off") then
		SB_DKP_DEBUG = 0
		return SB_DKP_DEBUG
	elseif (strlower(arguments[2]) == "low") then
		SB_DKP_DEBUG = 1
		return SB_DKP_DEBUG
	elseif (strlower(arguments[2]) == "high" or strlower(arguments[2]) == "hi") then
		SB_DKP_DEBUG = 2
		return SB_DKP_DEBUG
	end
	if (SB_DKP_DEBUG == 0) then
		SB_DKP_DEBUG = 1
		SB_DKP:Print("Debugging turned up! (1)")
		return SB_DKP_DEBUG
	elseif (SB_DKP_DEBUG == 1) then
		SB_DKP_DEBUG = 2
		SB_DKP:Print("Debugging turned up! (2)")
		return SB_DKP_DEBUG
	else
		SB_DKP_DEBUG = 0
		SB_DKP:Print("Debugging turned off! (0)")
		return SB_DKP_DEBUG
	end
	return SB_DKP_DEBUG
end

function SB_DKP.CmdShow(unused)
	SB_DKP_TempFrame:Show()
end

function SB_DKP.CmdHide(unused)
	SB_DKP_TempFrame:Hide()
end

function SB_DKP.CmdUIReize(Arguments)
	if (strtrim(strlower(Arguments[2])) == "default") then
		SB_DKP:UIResizeDefault()
	end
end

function SB_DKP.CmdPrintTier4()

end

function SB_DKP.CmdPrintTier5()
	SB_DKP.PrintTier4() -- the tier classes are exactly the same.
end

function SB_DKP.CmdPrintTier6()

end

-- END COMMAND AND WHISPER FUNCTION DEFINITIONS --